package com.atguigu.webadmin.service.impl;

import com.atguigu.model.pojo.ViewAppointment;
import com.atguigu.webadmin.mapper.ViewAppointmentMapper;
import com.atguigu.webadmin.service.ViewAppointmentService;
import com.atguigu.webadmin.vo.appointment.AppointmentQueryVo;
import com.atguigu.webadmin.vo.appointment.AppointmentVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 梅超凡
 * @Date 2024/11/12~20:50
 * @Description 针对表【view_appointment(预约看房信息表)】的数据库操作Service实现
*/
@Service
@Slf4j
public class ViewAppointmentServiceImpl extends ServiceImpl<ViewAppointmentMapper, ViewAppointment>
        implements ViewAppointmentService {

    @Autowired
    private ViewAppointmentMapper viewAppointmentMapper;

    @Override
    public IPage<AppointmentVo> pageAppointmentByQuery(IPage<AppointmentVo> iPage, AppointmentQueryVo queryVo) {
        IPage<AppointmentVo> voIPage = viewAppointmentMapper.pageAppointmentByQuery(iPage,queryVo);
        log.info("查询结果为：{}",voIPage);
        return voIPage;
    }
}




